<div>
    <div class="row">
        <div class="col-md-1 padding-r-0">
            <div class=" border-radius ">
                <div class="margin-xs-r  treeview attendance-staff">
                    <ul class="list-group text-center border-radius">
                        <li class="list-group-item node-orgTree "
                            v-for="(item,index) in shopVipUserInfo.vipLevels" :key="index"
                            @click="swatchVipLevel(item)"
                            :class="{'vc-node-selected':shopVipUserInfo.conditions.vipLevel == item.vipLevelId}">
                            {{item.levelName}}
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-md-11">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>查询条件</h5>
                    <div class="ibox-tools" style="top:10px;">
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" placeholder="请输入会员名称" v-model="shopVipUserInfo.conditions.vipName"
                                    class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" placeholder="请输入电话" v-model="shopVipUserInfo.conditions.vipTel"
                                    class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryShopVipUserMethod()">
                                <i class="fa fa-search"></i> 查询
                            </button>
                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_resetShopVipUserMethod()">
                                <i class="fa fa-repeat"></i> 重置
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <div class="ibox">
                <div class="ibox-title">
                    <h5>会员信息</h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddShopVipUserModal()">
                            <i class="fa fa-plus"></i>添加会员
                        </button>
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_exportShopVipUser()">
                            <vc:i18n name="导出" ></vc:i18n>
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <th class="text-center">会员编号</th>
                                <th class="text-center">会员名称</th>
                                <th class="text-center">会员电话</th>
                                <th class="text-center">性别</th>
                                <th class="text-center">会员等级</th>
                                <th class="text-center">会员生日</th>
                                <th class="text-center">开始时间</th>
                                <th class="text-center">结束时间</th>
                                <th class="text-center">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="shopVipUser in shopVipUserInfo.shopVipUsers">
                                <td class="text-center">{{shopVipUser.vipId}}</td>
                                <td class="text-center">{{shopVipUser.vipName}}</td>
                                <td class="text-center">{{shopVipUser.vipTel}}</td>
                                <td class="text-center">{{shopVipUser.sex=='0'?'女':'男'}}</td>
                                <td class="text-center">{{shopVipUser.levelName}}</td>
                                <td class="text-center">{{shopVipUser.birthday}}</td>
                                <td class="text-center">{{shopVipUser.startTime}}</td>
                                <td class="text-center">{{shopVipUser.endTime}}</td>
                                <td class="text-center">
                                    <!-- <div class="btn-group">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openVipUserAcct(shopVipUser)">账户
                                        </button>
                                    </div> -->
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openEditShopVipUserModel(shopVipUser)">修改
                                        </button>
                                    </div>
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openDeleteShopVipUserModel(shopVipUser)">删除
                                        </button>
                                    </div>
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_toUserVipDetail(shopVipUser)">详情
                                        </button>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="user/addShopVipUser" callBackListener="" callBackFunction=""></vc:create>
    <vc:create path="user/editShopVipUser"></vc:create>
    <vc:create path="user/deleteShopVipUser"></vc:create>
</div>
